package com.judian.smart.model;

/**
 * author: Peter
 * date: 2019/08/14 星期三 14:00
 * desc: 0->右边显示 1->左边窗口显示
 */
public class Dialogue {
   private int isSpeak;
   private String text;

    public Dialogue(int isSpeak, String text) {
        this.isSpeak = isSpeak;
        this.text = text;
    }

    public int getIsSpeak() {
        return isSpeak;
    }

    public void setIsSpeak(int isSpeak) {
        this.isSpeak = isSpeak;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return "Dialogue{" +
                "isSpeak=" + isSpeak +
                ", text='" + text + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Dialogue dialogue = (Dialogue) o;
        return isSpeak == dialogue.isSpeak && text.equals(dialogue.text);
    }


}
